package com.frxuexi.lib_base.room

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query

@Dao
interface ShopDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertShop(shopBean: MyShopBean):Long


    @Query("select count(*) from shop where id=:id")
    fun getIsLove(id:Int):Int

    @Delete
    fun deleteLove(shopBean: MyShopBean):Int
}